using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace MvcExtExample.Models
{
    public class TestModel1
    {
        [StringLength(5, ErrorMessage = "*长度小于5")]
        [Required(ErrorMessage = "*必填啊！")]
        public string UserName { get; set; }
        public string Sex { get; set; }
        public string Age { get; set; }
        public string XueHao { get; set; }
        public string BanJi { get; set; }  
    }
}